﻿@model FastFood.Core.Models.AddressModel
<script src="@Url.Content("~/Scripts/jquery-1.6.2.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-1.4.4.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/Custom/search-box.js")" type="text/javascript"></script>
<div id="big-search-box">
    <div class="center">
        <label id="lblSearchBox" for="txtSearchBox">Enter your address</label>
    </div>
    <div id="search-box">
        <div class="left-container">
            <div id="validationSummary" class="msg warning-msg" style="display: none;"></div>
            <input id="txtSearchBox" name="txtSearchBox" type="search" maxlength="250" placeholder="Street Address, City, [Province,] Country"
                pattern="^\\s*([^,]+?)\\s+(\\d{1,5})\\s*((,\\s*[^,]+?\\s*){2,3})$" />
            @using(@Html.BeginForm("Search", "Restaurant", FormMethod.Post, new { id="searchForm", enctype = "multipart/form-data" })){
                @Html.DisplayForModel("HiddenAddress")
                <input id="btnSearch" class="boton-gris" type="submit" value="Search"/>
            }
        </div>
    </div>
</div>

